{% extends "./inc/appbase.html" %}
{%block style%}
<style>
    .original {
        border: 1px solid #999;
        font-size: 10px !important;
        border-radius: 4px;
        line-height: 14px;
        width: 30px;
        color: #505050;
        text-align: center;
        margin-right: 5px;

        position: relative;
        padding: 0 2px;
    }
    .price {
        color: #e4393c;
    }
    .losspayer {
        color: #007fff;
    }
    .mui-table h4 ,.mui-media-body h4{
        font-size: 15px;
        margin: 0;
        font-weight: 300;
    }
    .mui-bar-nav ~ .mui-content .mui-pull-top-pocket{
        top: 0px !important;
    }
</style>
{%endblock%}
{% block content %}
<header class="mui-bar mui-bar-nav">
    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
    <h1 class="mui-title">{{controller.meta_title}}</h1>
</header>

<div class="mui-content">
    <div class="mui-card">
    <ul class="mui-table-view ">
        <li class="mui-table-view-cell">
        <div class="mui-content-padded" >
        <p class="text-center" style="color:black;font-size:16px">总收益:
        <span class="mui-badge mui-badge-danger size-16">
        {%if profitTotal %}{{profitTotal|formatCurrency}}{%else%}0.00{%endif%} 元
        </span>
        </p>
        </div>
        </li>
        <li class="mui-table-view-cell  mui-center mui-media mui-media-icon">
              <ul class="mui-table-view {%if n ==1 %}margin-top-0{%else%}margin-top-6{%endif%}">
                    <li class="mui-table-view-cell size-14">
                        <div class="mui-row">
                            <div class="mui-col-sm-6 mui-col-xs-6">
                                <div>名称：{{agentInfo.real_name}}
                                </div>
                            </div>
                            <div class="mui-col-sm-6 mui-col-xs-6">
                                <div>ID:{{agentInfo.proxy_id}}</div>
                            </div>
                        </div>
                    </li>

                    <li class="mui-table-view-cell size-14">
                        <div class="mui-row">
                            <div class="mui-col-sm-6 mui-col-xs-6">
                                <div>身份:
                                {%if agentInfo.is_admin == 0 %}
                                {%if agentInfo.groupid == 1 %}
                                 <span class="text-warning">一级代理</span>
                                 {%elif agentInfo.groupid == 2 %}
                                 <span class="text-success">二级代理</span>
                                 {%elif agentInfo.groupid == 3 %}
                                 <span class="text-danger">三级代理</span>
                                 {%endif%}
                                {%elif agentInfo.is_admin == 1 %}
                                 <span class="text-danger">系统运营</span>
                                {%endif%}
                                </div>
                            </div>
                            <div class="mui-col-sm-6 mui-col-xs-6">
                                <div>收益：<span class="mui-badge mui-badge-danger size-12">{%if selfprofitTotal %}{{selfprofitTotal|formatCurrency}}{%else%}0.00{%endif%} 元</span>
                                </div>
                            </div>
                        </div>
                    </li>
                    
                    <li class="mui-table-view-cell size-14">
                        <div class="mui-row">
                            <div class="mui-col-sm-6 mui-col-xs-6">
                                <div>手机号:
                                {%if agentInfo.mobile %}{{agentInfo.mobile}}{%else%}{%endif%}
                                </div>
                            </div>
                            <div class="mui-col-sm-6 mui-col-xs-6">
                                <div>注册时间：{{agentInfo.reg_time|moment('YYYY-MM-DD')}}
                                </div>
                            </div>
                        </div>
                    </li>
                    
                    <li class="mui-table-view-cell size-14">
                        <div class="mui-row">
                            <div class="mui-col-sm-6 mui-col-xs-6">
                                <div>直属代理（人）:
                                {%if loweranum %}{{loweranum}}{%else%}0{%endif%}
                                </div>
                            </div>
                            <div class="mui-col-sm-6 mui-col-xs-6">
                                <div>直属玩家（人）:
                                {%if lowerpnum %}{{lowerpnum}}{%else%}0{%endif%}
                                </div>
                            </div>
                        </div>
                    </li>
                    
                </ul>
        </li>
    </ul>
    </div>
    
    <div class="mui-card">
    <ul class="mui-table-view ">
        <li class="mui-table-view-cell">
        <div class="mui-content-padded" >
        <p class="text-center" style="color:black;font-size:16px">他的团队:
        <span class="mui-badge mui-badge-danger size-16">
        {%if mbprofitTotal %}{{mbprofitTotal|formatCurrency}}{%else%}0.00{%endif%} 元
        </span>
         </p>
        </div>
        </li>
    </ul>
    </div>
    
</div>


{% endblock%}

{% block script %}
<script>
    mui.init();

    mui.ready(function() {
    });

</script>
{% endblock %}